int Compress(int width,int height,int bitcount,int quality,char* pBits,char* jpegBuffer);